<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title></title>
<script type="text/javascript" src="drop_down.js"></script>
<style type="text/css">
@import "style.css";
</style>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>

<xsl:template match="pictures">
<img src="logo.php" />
<xsl:for-each select="picture">
<div class="picture">
<h3><xsl:value-of select="FileName"/></h3>
<table><tr>
<td class="thumbnail">
<a href="./files/{FileName}"><img border="0" src="exif_image.php?file=./files/{FileName}" alt="no thumbnail available" /></a>
</td></tr><tr>
<td class="metadata">
<ul id="nav">
<li><a href="#">Metadata</a>
<ul>
<xsl:apply-templates/>
</ul>
</li>
</ul>
Size: <xsl:value-of select="ExifImageWidth"/>x<xsl:value-of select="ExifImageLength"/> / <xsl:value-of select="FileSize"/>
</td></tr><tr><td>
<h3>Download</h3>
<form action="wallpaper.php" method="post">
How to scale image:<br />
<select name="function">
<option value="crop">crop (default)</option>
<option value="resize">resize</option>
</select>
<h4>For Desktop:</h4>
PC / MAC:<br />
<input type="hidden" name="filename" value="./files/{FileName}" />
<input type="submit" name="size" value="640x480" />
<input type="submit" name="size" value="800x600" /><br />
<input type="submit" name="size" value="1024x768" />
<input type="submit" name="size" value="1280x1024" /><br />
<input type="submit" name="size" value="1600x1200" />
<h4>For Mobile Device:</h4>
Nokia 770:<br />
<input type="submit" name="size" value="800x480" /><br />
Nokia Series60:<br />
<input type="submit" name="size" value="176x144" />
<input type="submit" name="size" value="176x208" /><br />
<input type="submit" name="size" value="352x416" />
<br />
Pocket PC:<br />
<input type="submit" name="size" value="240x320" />
<input type="submit" name="size" value="360x480" /><br />
<input type="submit" name="size" value="480x640" />

</form>

</td>
</tr>
</table>
</div>
</xsl:for-each>
</xsl:template>

<xsl:template match="THUMBNAIL|COMPUTED">
<li><a href="#"><xsl:value-of select="local-name()"/></a>
<ul>
<xsl:for-each select="./*">
<li><a href="#"><xsl:value-of select="local-name()"/></a>
<ul>
<li><a href="#"><xsl:value-of select="." /></a></li>
</ul>
</li>
</xsl:for-each>
</ul>
</li>
</xsl:template>

<xsl:template match="*">
<li><a href="#"><xsl:value-of select="local-name()"/></a>
<ul>
<li><a href="#"><xsl:value-of select="." /></a></li>
</ul>
</li>
</xsl:template>
</xsl:stylesheet>
